package com.yanchangapp.adapter._n_manage;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanchangapp.R;
import com.yanchangapp.model.bean.AttachBean;
import com.zxl.baselib.ui.base.BaseActivity;

import java.util.List;

/**
 * Created by apple on 2019-10-15.
 * description: 附件adapter...
 */
public class AttachmentAdapter extends BaseQuickAdapter<AttachBean, BaseViewHolder> {

    public AttachmentAdapter(@Nullable List<AttachBean> data) {
        super(R.layout.item_attachment_show, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AttachBean item) {
        helper.setText(R.id.tvAttachment,item.getAttachmentName());
        helper.addOnClickListener(R.id.tvLook);
    }
}
